#ifndef	__QUAD_RENDERABLE_H__
#define	__QUAD_RENDERABLE_H__

#include<d3d9.h>
#include<d3dx9.h>

#include "../../application/d3ddefs.h"

class QuadRenderable
{
	enum
	{
		AlignType_Center		=	0,
		AlignType_UpperLeft,
		AlignType_UpperRight,
		AlignType_DownLeft,
		AlignType_DownRight,
		AlignType_AnchorPoint,
	};
protected:
	
	LPDIRECT3DVERTEXBUFFER9 m_pQuadVB;

	float					m_width,m_height;
	int						m_alignType;
	float					m_anchorU,m_anchorV;

	static const int QUAD_VERTEX_COUNT = 4;
	//static const int QUAD_
	//
	//QUAD_VERTEX_COUNT * 
	D3DVERTEX	m_arrData[QUAD_VERTEX_COUNT];

public:
	QuadRenderable();
	~QuadRenderable();

	
	void SetSize(float width,float height);
	void SetAlignType(float align);

	//void SetWidth();
};
#endif	//	__QUAD_RENDERABLE_H__